home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Network Login Text.xpl < prev    next >
Text File  |  1999-06-13  |  2KB  |  62 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="1"
  3. "COUNT"="2"
  4. "UIPATH"="Network\Login\Login Window"
  5. "NAME"="Login Window Text"
  6. "VERSION"="1.42"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Login text"
  9. "TEXT 2"="Window Caption"
  10. "DESCRIPTION 1"=""Login text" will be displayed when the user is about to login, above the fields "Username" and "Password"."
  11. "DESCRIPTION 2"="You can use this settings to provide more details then the common message "Enter a login and password that is valid on this system"."
  12. "DESCRIPTION 3"=""Window Caption" will be displayed right beside the original caption of the login window."
  13. "AUTHOR"="Xteq Systems"
  14. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  15. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  16.  
  17. sP="HKLM\Software\Microsoft\Windows NT\CurrentVersion\WinLogon\"
  18. v1="LogonPrompt"
  19. v2="Welcome"
  20. Sub Plugin_Initialize 
  21.  if RegPathExists(sp) then
  22.   s=RegReadValue(sp & v1)
  23.   SetUIElement 1,s
  24.  
  25.   s=RegReadValue(sp & v2)
  26.   SetUIElement 2,s
  27.  else
  28.   Disable
  29.  end if
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  s=GetUIElement(1)
  37.  if Len(s)>0 then
  38.     Call RegWriteValue(sp&v1,s,1)
  39.  else
  40.     s=RegReadValue(sp&v1)
  41.     if IsEmpty(s)=false then Call RegDeleteValue(sp&v1)
  42.  end if
  43.  
  44.  s=GetUIElement(2)
  45.  if Len(s)>0 then
  46.     'automatically add a space
  47.     s=" " & ltrim(s)
  48.     Call RegWriteValue(sp&v2,s,1)
  49.  else
  50.     s=RegReadValue(sp&v2)
  51.     if IsEmpty(s)=false then Call RegDeleteValue(sp&v2)
  52.  end if
  53.  
  54.  Logoff
  55. End Sub
  56.  
  57. Sub Plugin_Terminate 
  58. End Sub
  59.  
  60.  
  61.  
  62.